/*
 * @Author       : xh
 * @Date         : 2022-10-11 10:26:01
 * @LastEditors: y001554
 * @FileName     :
 */
import type { ExtractPropTypes,PropType } from 'vue'
import { ElCascader, } from 'element-plus'
import type {CascaderProps} from 'element-plus'
type TElCascadeProps = InstanceType<typeof ElCascader>['$props'];
// type TElCascadeCprops =  TElCascadeProps['props']
 

// export type ButtonData = Array<ButtonItem>;
export interface Citys {
  c: String
  n: String
  p: String
  d: Array<any>
  a?: String
}

export interface Items {
  name: String
  code: String
  children?: Array<any>
}
export const props = {
  // 级联级别  1 省   2 市  3 县  4所有非强关联选取
  type: {
    default: 1,
    type: Number
  },
  customerCprops:{
    type: Object as PropType<CascaderProps>,
    default() {
      return {}
    }
  },
  customerProps:{
    type: Object as PropType<TElCascadeProps>,
    default() { 
      return {}
    }
  },

  
  modelValue: {
    type: [String, Number, Array<any>],
    default: ''
  },
 
  // 自定义样式
  customerStyle: {
    type: Object,
    default() {
      return {}
    }
  }
}

export type PropsType = ExtractPropTypes<typeof props>
